package com.sina.shop.manage.service.order;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.order.Order;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-01-12-16:05
 */
public interface OrderManageService extends BaseService {

    Order getOrderById(Long id);

    int deleteOrder(Long id) throws DataException, UpdateException;

    Order saveOrder(Order order) throws CreateException, ResourceExistsException, DataException;

    Order updateOrder(Order order) throws UpdateException, DataException;

    List<Map<String, Object>> getOrderList(Order order, Long count[]);
}
